package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by HuangMin on 2018/4/24.
 */
@AllArgsConstructor
@Getter
public enum IncreaseTheLoanAmountEnum {

    EDUCATION_AUTHORIZE((byte) 1, "学历认证"),
    JD_AUTHORIZE((byte) 2, "京东认证"),
    CREDIT_CARD_AUTHORIZE((byte) 3, "信用卡认证"),
    SOCIAL_SECURITY_OPERATOR_AUTHORIZE((byte) 4, "社保认证");

    private Byte value;
    private String desc;

    public static IncreaseTheLoanAmountEnum of(byte value) {
        for (IncreaseTheLoanAmountEnum t : values()) {
            if (t.value == value) {
                return t;
            }
        }
        return null;
    }

}
